#include "../rocket/common/config.h"
#include "../rocket/common/log.h"

#include <pthread.h>

void *fun(void *) {

    INFOLOG("this is thread %s", "fun");

    INFOLOG("this is thread %s 2", "fun");
    return NULL;
}

int main() {

    rocket::Config::SetGlobalConfig("conf/rocket.xml");

    rocket::Logger::InitGlobalLogger();

    pthread_t thread;
    pthread_create(&thread, NULL, &fun, NULL);

    INFOLOG("test log %s", "info");
    DEBUGLOG("test log %s", "debug");

    pthread_join(thread, NULL);

    return 0;
}
